package com.zbkj.crmeb.enums;

/**
 * 功能描述: 活动状态
 * @Author: wangzh
 * @Date: 2022/11/29 16:23
 */
public enum ChannelGroupBookingActivityStatusEnum {

    ALL(0, "全部"),
    NOT_STARTED(1, "未开始"),
    IN_PROGRESS(2, "进行中"),
    END(3, "已结束")
    ;

    private Integer code;
    private String msg;

    ChannelGroupBookingActivityStatusEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    public static ChannelGroupBookingActivityStatusEnum valueOf(Integer code){
        for (ChannelGroupBookingActivityStatusEnum value : values()){
            if (code.equals(value.getCode())){
                return value;
            }
        }
        return ALL;
    }
}
